package com.nidu.demo.tenant.dto;

import com.nidu.demo.base.BaseCmd;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Set;

/**
 * 租户套餐创建命令
 *
 * @author auto
 */
@Data
@Schema(description = "租户套餐创建命令")
@EqualsAndHashCode(callSuper = true)
public class TenantPackageAddCmd extends BaseCmd {

    /**
     * 租户套餐名称
     */
    @NotBlank(message = "租户套餐名称不能为空")
    @Schema(description = "租户套餐名称", example = "基础套餐")
    private String name;

    /**
     * 菜单ID列表
     */
    @NotEmpty(message = "菜单ID列表不能为空")
    @Schema(description = "菜单ID列表")
    private Set<Long> menuIds;

    /**
     * 描述
     */
    private String remark;

}